﻿<!--<!DOCTYPE html>
<html ng-app="QuotingToolApp">
<head>
    <base href="/">
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - My ASP.NET Application</title>


    <script src="../Scripts/libs/jquery/jquery-1.11.3.min.js"></script>
    <script src="../Scripts/libs/jquery/jquery-1.11.3.min.js"></script>
    <script src="../Scripts/libs/lodash.js"></script>
    <script src="../Scripts/libs/angular/angular.min.js"></script>
    <script src="../Scripts/libs/angular/angular-resource.min.js"></script>
    <script src="../Scripts/libs/angular/angular-route.min.js"></script>
    <script src="../Scripts/libs/angular/angular-sanitize.min.js"></script>
    <script src="../Scripts/libs/angular/angular-animate.min.js"></script>
    <script src="../Scripts/libs/bootstrap/bootstrap.min.js"></script>
    <script src="../Scripts/libs/bootstrap/ui-bootstrap-tpls-2.0.1.min.js"></script>

    <script src="../Scripts/libs/smart-table/smart-table.js"></script>
    <script src="../Scripts/directives/smart-table-directives.js"></script>

    <script src="../Scripts/libs/ng-notifications-bar-master/ngNotificationsBar.min.js"></script>
    <script src="../Scripts/libs/angular-loading-bar-master/loading-bar.min.js"></script>
    <script src="../Scripts/libs/contextMenu.js"></script>

    <script src="../Scripts/app.js"></script>
    <script src="../Scripts/app.config.js"></script>

    <script src="../Scripts/controllers/SearchContractsController.js"></script>
    <script src="../Scripts/controllers/SearchQuotesController.js"></script>
    <script src="../Scripts/controllers/QuoteController.js"></script>
    <script src="../Scripts/controllers/SearchOpportunityController.js"></script>
    <script src="../Scripts/services/CommonServices.js"></script>
    <script src="../Scripts/services/ContractsService.js"></script>
    <script src="../Scripts/services/QuoteService.js"></script>
    <script src="../Scripts/controllers/SearchMyQuotesController.js"></script>
    <script src="../Scripts/services/MyQuoteService.js"></script>
    <!--    Directive
    <script src="../Scripts/directives/datepicker-directives.js"></script>
    <script src="../Scripts/directives/searchCustomer.js"></script>
    <script src="../Scripts/directives/searchAccount.js"></script>
    <script src="../Scripts/directives/searchEmployee.js"></script>

    <link href="../Content/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="../Content/ngNotificationsBar.min.css" rel="stylesheet" />
    <link href="../Content/loading-bar.min.css" rel="stylesheet" />


    <link href="../Content/Site.css" rel="stylesheet" type="text/css" />

    <script src="../Scripts/modernizr-2.6.2.js"></script>
</head>
<body>
    <notifications-bar class="notifications"></notifications-bar>  -->
<!--    Header  -->
<header>
    <h2>My Quotes</h2>
</header>
<!--    Main    -->
<!--<div class="searchQuotes center" ng-controller="SearchMyQuotesController as myQuotes">-->
<div class="searchQuotes center">
        <!--    Search Quotes    -->
        <div id="searchByCustomerArea" class="row">
            <form class="form-horizontal" role="form" name="searchquotesform">
                <fieldset class="searchQuotesfld">
                    <legend>Search Quotes by</legend>
                    <div class="col-lg-5 col-md-5 col-sm-3">
                        <!--Quote Number-->
                        <div class="form-group row">
                            <label class="form-control-label col-sm-3 col-lg-3" for="searchby">Quote Number</label>
                            <div class="col-sm-6">
                                <input id="quoteNumberTxt" type="text" class="form-control" placeholder="Type quote number" autocomplete="off" ng-model="myQuotes.quoteNumberTxt" />
                            </div>
                        </div>
                        <!--Creation Date-->
                        <div class="form-group row">
                            <label class="form-control-label col-sm-3 col-lg-3" for="searchby">Creation Date</label>
                            <div class="col-sm-6">
                                <quotesdatepicker ng-model="myQuotes.dtPicker" date-options="dateOptions" opened="opened" />
                            </div>
                        </div>
                        <!--SFDC-->
                        <div class="form-group">
                            <label class="form-control-label col-sm-3 col-lg-3" for="searchby">SFDC Account Name</label>
                            <div class="col-sm-6">
                                <quotesearchaccount ng-model=" myQuotes.selectedAccount"></quotesearchaccount>
                            </div>
                        </div>
                        <!--Contract Number-->
                        <div class="form-group row">
                            <label class="form-control-label col-sm-3 col-lg-3" for="searchby">Contract Number</label>
                            <div class="col-sm-6">
                                <input id="contractNumberTxt" type="text" class="form-control" placeholder="Type contract number" autocomplete="off" ng-model="myQuotes.contractNumberTxt" />
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-5 col-sm-8">
                        <!--Created By-->
                        <div class="form-group">
                            <label class="form-control-label col-sm-3 col-lg-3" for="searchby">Created By</label>
                            <div class="col-sm-7">
                                <quotesearchemployee ng-model="myQuotes.selectedEmployeeCreate"></quotesearchemployee>
                            </div>
                        </div>
                        <!--Modify By-->
                        <div class="form-group">
                            <label class="form-control-label col-sm-3 col-lg-3" for="searchby">Modify By</label>
                            <div class="col-sm-7">
                                <quotesearchemployee ng-model="myQuotes.selectedEmployeeModify"></quotesearchemployee>
                            </div>
                        </div>
                        <!--Sold To Account Name-->
                        <div class="form-group">
                            <label class="form-control-label col-sm-3 col-lg-3" for="searchby">Sold To Customer</label>
                            <div class="col-sm-7">
                                <quotesearchcustomer ng-model="myQuotes.selectedCustomer"></quotesearchcustomer>
                            </div>
                        </div>
                    </div>
                    <!--    Search/Clear Buttons    -->
                    <div class="col-lg-3 col-sm-1 col-md-2">
                        <div class="customCreateQuote">
                            <a href="/#/createQuote/searchContracts">
                                <button type="button" class="btn btn-add">
                                    <i class="glyphicon glyphicon-plus"></i>
                                    <span>Create New Quote</span>
                                </button>
                            </a>
                        </div>
                        <div class="fieldsetbuttons">
                            <button type="submit" ng-click="myQuotes.searchQuotes(searchquotesform)" class="btn btn-search">
                                <i class="glyphicon glyphicon-search"></i>
                                <span>Search</span>
                            </button>
                            <button type="button" ng-click="myQuotes.fieldsReset()" class="btn btn-clear">
                                <i class="glyphicon glyphicon-remove"></i>
                                <span>Clear</span>
                            </button>
                        </div>                        
                    </div>
                </fieldset>
            </form>
        </div>
        <!--    Recent Quotes    -->
        <div class="row" id="searchResultsArea" ng-show="myQuotes.quoteDatasCollection.length>0">
            <!-- Quotes Collection Table -->
            <table st-table="myQuotes.displayQuoteDatasCollection" st-safe-src="myQuotes.quoteDatasCollection" class="table contractstable">
                <thead>
                    <tr>
                        <th st-sort="QUOTE_HEADER_ID">Quote Number</th>
                        <th st-sort="CREATION_DATE">Created Day</th>
                        <th st-sort="CREATED_BY">Created By</th>
                        <th st-sort="QUOTE_STATUS">Quote Status</th>
                        <th st-sort="SOLD_TO_CUSTOMER_NAME">Sold To Account Name</th>
                        <th st-sort="LAST_UPDATE_DATE">Last Modify Date</th>
                        <th st-sort="USER_NAME">SFDC Customer Name</th>
                        <th st-sort="OPPORTUNITY_NUMBER">Opp Number</th>
                    </tr>
                </thead>
                <tbody>
                    <tr st-select-mode="multiple" id="{{row.HEADER_ID}}" ng-repeat="row in myQuotes.displayQuoteDatasCollection" ng-class="{'newRow': row.isNew}">
                        <td><a href="/#/quote/{{row.QUOTE_HEADER_ID}}" class="quoteRef">{{row.QUOTE_NUMBER}}</a></td>
                        <td>{{row.CREATION_DATE}}</td>
                        <td>{{row.CREATED_BY}}</td>
                        <td>{{row.QUOTE_STATUS}}</td>
                        <td>{{row.SOLD_TO_CUSTOMER_NAME}}</td>
                        <td>{{row.LAST_UPDATE_DATE}}</td>
                        <td>{{row.USER_NAME}}</td>
                        <td>{{row.OPPORTUNITY_NUMBER}}</td>
                    </tr>
                </tbody>
            </table>
        </div>
        <!--    Footer  -->
        <footer>
            <div class="row">
                <div class="col-lg-12">

                </div>
            </div>
        </footer>
    </div>
<!--</body>
</html>-->
